﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QtCore/qglobal.h>
#if QT_VERSION >= 0x050000
#include <QtWidgets/QMainWindow>
#else
#include <QtGui/QMainWindow>
#endif

QT_BEGIN_NAMESPACE
namespace Ui {
class MainWindow;
}
QT_END_NAMESPACE
class JlinkARM;
class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

private slots:
    void on_fwFilePathSelectPushButton_clicked();

private:
    Ui::MainWindow *ui;
    QByteArray burnFileContent;
    JlinkARM* arm;
    QTimer* timer;
    uint32_t burnAddr = 0;
    uint32_t RJLINK_BURN_CONTENT_SIZE = 1024;
};
#endif // MAINWINDOW_H
